import java.util.Scanner;

public class Test2_9 {
    public static void main(String[] args) {
        System.out.print("Enter v0, v1, and t:");
        Scanner input = new Scanner(System.in);
        double v0 = input.nextDouble(), v1 = input.nextDouble(), t = input.nextDouble();
        double a = (v1 - v0) / t;
        System.out.println("The average acceleration is " + String.format("%.4f", a));
    }
}
